
<ul class="nav nav-tabs">
    <li {if $do=='theme' && $op!='post'}class="active"{/if}><a href="{php echo createWebUrl('theme', array('op'=>'display','cw'=>'home'),true);}">活动管理</a></li>
    <li {if $do=='record'}class="active"{/if}>
		<a href="{php echo createWebUrl('record', array('op'=>'display','themeid'=>$themeid),true);}">定单管理</a>
	</li>
	{if $system['fenxiao'] == '1'}
	 <li {if $do=='comm'}class="active"{/if}>
		<a href="{php echo createWebUrl('comm', array('op'=>'display','themeid'=>$themeid),true);}">分销管理</a>
	</li>
	{/if}
	<li {if $do=='order'}class="active"{/if}>
		<a href="{php echo createWebUrl('order',array('op' => 'display','themeid'=>$themeid),true);}">交易记录</a>
	</li>
	<li {if $do=='poster'}class="active"{/if}>
		<a href="{php echo createWebUrl('poster',array('op' => 'display','themeid'=>$themeid),true);}">海报</a>
	</li>
	
	{if $system['qrlist']==1}
	<li {if $do=='qrlist' }class="active"{/if}>
		<a href="{php echo createWebUrl('qrlist',array('op' => 'display','themeid'=>$themeid),true);}">二维码</a>
	</li>
	{/if}
	{if $system['ruanjian']==3}
	<li {if $do=='shangjia' || $do=='shangjiaadd'}class="active"{/if}>
	<a href="{php echo createWebUrl('shangjia',array('op' => 'display','themeid'=>$themeid),true);}">商家</a>
	</li>
	{/if}
	{if $system['softstyle']==5}
	<li {if $do=='shengshi' || $do=='shengshiadd'}class="active"{/if}>
	<a href="{php echo createWebUrl('shengshi',array('op' => 'display','themeid'=>$themeid),true);}">省市</a>
	</li>
	{/if}
	{if $config['ishexiao']==1 || empty($config)}
	<li {if $do=='check'}class="active"{/if}>
		<a href="{php echo createWebUrl('check',array('op' => 'display','themeid'=>$themeid),true);}">核销</a>
	</li>
	{/if}
<!-- 	<li {if $do=='code'}class="active"{/if}>
		<a href="{php echo createWebUrl('code',array('op' => 'display','themeid'=>$themeid),true);}">卡密管理</a>
	</li> -->
<!-- 	<li {if $do=='reply'}class="active"{/if}>
		<a href="{php echo createWebUrl('reply', array('op'=>'display','themeid'=>$themeid),true);}">回复管理</a>
	</li> -->
	{if $system['softstyle']==7 && $system['friend']==1}
	<li {if $do=='friend'}class="active"{/if}>
		<a href="{php echo createWebUrl('friend',array('op' => 'display','themeid'=>$themeid),true);}">星星记录</a>
	</li>
	<li {if $do=='exchange'}class="active"{/if}>
		<a href="{php echo createWebUrl('exchange',array('op' => 'display','themeid'=>$themeid),true);}">兑换记录</a>
	</li>
	{/if}
	{if $system['fanpai']==1}
	<li {if $do=='fanpaijihui'}class="active"{/if}>
		<a href="{php echo createWebUrl('fanpaijihui',array('op' => 'display','themeid'=>$themeid),true);}">抽奖机会</a>
	</li>
	<li {if $do=='fanpaichoujiang'}class="active"{/if}>
		<a href="{php echo createWebUrl('fanpaichoujiang',array('op' => 'display','themeid'=>$themeid),true);}">抽奖记录</a>
	</li>
	{/if}
<!-- 	<li {if $do=='fake'}class="active"{/if}>
		<a href="{php echo createWebUrl('fake',array('op' => 'display','themeid'=>$themeid),true);}">马甲管理</a>
	</li> -->
	<li {if $do=='fans'}class="active"{/if}>
		<a href="{php echo createWebUrl('fans',array('op' => 'display','themeid'=>$themeid),true);}">粉丝</a>
	</li>
	<li {if $do=='worker'}class="active"{/if}>
		<a href="{php echo createWebUrl('worker',array('op' => 'display','themeid'=>$themeid),true);}">员工业绩</a>
	</li>

	{if !empty($themeid) && $themeid<>-1}
	<li {if $do=='theme' && $op=='post'}class="active"{/if}><a href="{php echo createWebUrl('theme', array('op'=>'post','id'=>$themeid),true);}">活动编辑</a></li>
	{/if}
	{if $_G['isSuperAdmin']}
	<li><a href="{php echo createWebUrl('theme', array('op'=>'post'),true);}">新增活动</a></li>
	
	{/if}
</ul>
<?php
	$return_tips = \think\Cache::get('return_tips');
	$return_tips_msg = $return_tips['msg'];
	$return_tips_type = $return_tips['type'];
	if(!empty($return_tips)){
		$is_return_tips = true;
	}else{
		$is_return_tips = false;
	}
 	\think\Cache::rm('return_tips');
?>
<style>
	#success-message-container {
		width: 200px;
		position: fixed;
		top: 40%;
		left: 50%;
		transform: translate(-50%, -50%);
		z-index: 9999;
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 10px 20px;
		background-color: green;
		color: #fff;
		border-radius: 4px;
		font-size: 16px;
		opacity: 0;
		transition: opacity 0.3s ease;
		pointer-events: none;
	}
	#fail-message-container {
		width: 200px;
		position: fixed;
		top: 40%;
		left: 50%;
		transform: translate(-50%, -50%);
		z-index: 9999;
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 10px 20px;
		background-color: rgba(0, 0, 0, 0.7);
		color: #fff;
		border-radius: 4px;
		font-size: 16px;
		opacity: 0;
		transition: opacity 0.3s ease;
		pointer-events: none;
	}

	#fail-message-container.visible {
		opacity: 1;
		pointer-events: auto;
	}
	#success-message-container.visible {
		opacity: 1;
		pointer-events: auto;
	}

</style>
<!-- 消息提示容器 -->
<!--成功-->
<div id="success-message-container"></div>
<!--失败-->
<div id="fail-message-container"></div>
<script>
	var is_return_tips = "{$is_return_tips}";
	var msg = "{$return_tips_msg}";
	var type = "{$return_tips_type}";
	if(is_return_tips==='1'){
		window.onload = function () {
			if(type==='success'){
				var messageContainer = document.getElementById('success-message-container');
				messageContainer.classList.add('visible');
			}else{
				var messageContainer = document.getElementById('fail-message-container');
				messageContainer.classList.add('visible');
			}
			messageContainer.textContent = msg;
			setTimeout(function () {
				messageContainer.classList.remove('visible');
			}, 2500);

		};
	}
</script>